//
//  NetworkUtils.m
//  suRead
//
//  Created by 师爱华 on 17/3/1.
//  Copyright © 2017年 bao. All rights reserved.
//

#import "NetworkUtils.h"

@implementation NetworkUtils

// 是否wifi
+ (NetworkStatus) checkNetworkStatus {
    Reachability *reachability = [Reachability reachabilityForInternetConnection];
    NetworkStatus netStatus = [reachability currentReachabilityStatus];
    return netStatus;
//    BOOL connectionRequired = [reachability connectionRequired];
//    NSString* statusString = @"";
//    
//    switch (netStatus)
//    {
//        case NotReachable:        {
//            statusString = NSLocalizedString(@"Access Not Available", @"Text field text for access is not available");
//            imageView.image = [UIImage imageNamed:@"stop-32.png"] ;
//            /*
//             Minor interface detail- connectionRequired may return YES even when the host is unreachable. We cover that up here...
//             */
//            connectionRequired = NO;
//            break;
//        }
//            
//        case ReachableViaWWAN:        {
//            statusString = NSLocalizedString(@"Reachable WWAN", @"");
//            imageView.image = [UIImage imageNamed:@"WWAN5.png"];
//            break;
//        }
//        case ReachableViaWiFi:        {
//            statusString= NSLocalizedString(@"Reachable WiFi", @"");
//            imageView.image = [UIImage imageNamed:@"Airport.png"];
//            break;
//        }
//    }
}


@end
